import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import piniaPluginPersistedstate from "pinia-plugin-persistedstate";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import "./assets/css/index.scss";
import "./assets/icons/index.js";
import { createPinia } from "pinia"; // 引入 Pinia

const pinia = createPinia();
pinia.use(piniaPluginPersistedstate);

createApp(App)
  .use(pinia) // 使用 Pinia 替代 Vuex
  .use(router)
  .use(ElementPlus)
  .mount("#app");
